package com.demo.domain.utils;

import com.demo.domain.Dto;

public class DtoUtil {
    public static Dto returnSuccessData(Object data) {
        Dto d = new Dto();
        d.setStatusCode(200);
        d.setData(data);
        return d;
    }

    public static Dto returnError(int statusCode, String msg) {
        Dto d = new Dto();
        d.setStatusCode(statusCode);
        d.setMsg(msg);
        return d;
    }
}
